﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace LyyCMS.Areas.Dash.Models
{
    public class LoginModel
    {
        [DisplayName("登录名")]
        [Required]
        [MinLength(4,ErrorMessage ="登录名长度不能少于4个字符")]
        public string UserName { get; set; }

        [DisplayName("登录密码")]
        [Required]
        [MinLength(6,ErrorMessage ="密码长度不能少于6个字符")]
        public string PassWord { get; set; }


        [DisplayName("记住我")]
        public bool RemberMe { get; set; }
    }
}
